home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3s / getwc.z / getwc
Encoding:
Text File  |  2002-10-03  |  3.3 KB  |  65 lines

  1.  
  2.  
  3.  
  4. ggggeeeettttwwwwcccc((((3333SSSS))))                                                            ggggeeeettttwwwwcccc((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _gggg_eeee_tttt_wwww_cccc_,,,, _gggg_eeee_tttt_wwww_cccc_hhhh_aaaa_rrrr_,,,, _ffff_gggg_eeee_tttt_wwww_cccc  - get _wwww_cccc_hhhh_aaaa_rrrr______tttt character or word from a stream
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      #include <stdio.h>
  13.      #include <widec.h>
  14.      int getwc(FILE *_s_t_r_e_a_m);
  15.      int getwchar(void);
  16.      int fgetwc(FILE *_s_t_r_e_a_m);
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN ((((IIIInnnntttteeeerrrrnnnnaaaattttiiiioooonnnnaaaallll FFFFuuuunnnnccccttttiiiioooonnnnssss))))
  19.      _gggg_eeee_tttt_wwww_cccc transforms the next EUC character from the named input stream into
  20.      a _wwww_cccc_hhhh_aaaa_rrrr______tttt character, and returns it.  It also increments the file
  21.      pointer, if defined, by one EUC character in the stream.  _gggg_eeee_tttt_wwww_cccc_hhhh_aaaa_rrrr is
  22.      defined as _gggg_eeee_tttt_wwww_cccc_((((_ssss_tttt_dddd_iiii_nnnn_)))).  _gggg_eeee_tttt_wwww_cccc and _gggg_eeee_tttt_wwww_cccc_hhhh_aaaa_rrrr are macros.
  23.  
  24.      _ffff_gggg_eeee_tttt_wwww_cccc behaves like _gggg_eeee_tttt_wwww_cccc, but is a function.
  25.  
  26. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  27.      _ffff_cccc_llll_oooo_ssss_eeee(3S), _ffff_eeee_rrrr_rrrr_oooo_rrrr(3S), _ffff_oooo_pppp_eeee_nnnn(3S), _ssss_cccc_aaaa_nnnn_ffff(3S), _ssss_tttt_dddd_iiii_oooo(3S), _gggg_eeee_tttt_wwww_ssss(3S),
  28.      _pppp_uuuu_tttt_wwww_cccc(3S), _wwww_iiii_dddd_eeee_cccc(3S).
  29.  
  30. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  31.      These functions return the constant _EEEE_OOOO_FFFF at the end-of-file, or upon an
  32.      error and set the _EEEE_OOOO_FFFF or error indicator of a stream, respectively.  If
  33.      the error is an illegal sequence, _eeee_rrrr_rrrr_nnnn_oooo is set to _EEEE_IIII_LLLL_SSSS_EEEE_QQQQ.
  34.  
  35. NNNNOOOOTTTTEEEESSSS
  36.      If the value returned by _gggg_eeee_tttt_wwww_cccc, _gggg_eeee_tttt_wwww_cccc_hhhh_aaaa_rrrr, or _ffff_gggg_eeee_tttt_wwww_cccc is compared with the
  37.      integer constant _EEEE_OOOO_FFFF after being stored in a _wwww_cccc_hhhh_aaaa_rrrr______tttt variable, the
  38.      comparison may not succeed unless _EEEE_OOOO_FFFF is cast to type _wwww_cccc_hhhh_aaaa_rrrr______tttt.
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.                                                                         PPPPaaaaggggeeee 1111
  61.  
  62.  
  63.  
  64.